package com.lilingguo.anime.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lilingguo.anime.domain.FolderPo;

import java.util.List;

/**
 * 文件路径
 *
 * @Author: GuoZi
 * @Date: 2021/05/30 22:14
 */
public interface FolderService extends IService<FolderPo> {

    Integer saveRootFolder(FolderPo folder);

    Integer saveFolder(FolderPo folder, Integer parentId);

    List<FolderPo> findRootFolders();

    List<FolderPo> findChildFoldersById(Integer fid);

    FolderPo findParentFolder(Integer fid);

    Integer findParentId(Integer fid);

    String findRelativePath(int fid);

    boolean load();

    String findThumbnailPath(int fid);

    String findImagePath(int fid, int page);

    int findTotalCount();
}
